package com.ys.peony.base;

/**
 * Created by 59153 on 2017/7/27.
 */

public class BasePresenter<M extends BaseModel, V extends BaseContract.IBaseView> {
    public M model;
    public V view;

    //presenter层关联对应的view
    public void relateView(V v) {
        this.view = v;
    }

    //presenter层关联对应的Model
    public void relateModel(M m) {
        this.model = m;
    }

    public void detachWindow() {
        this.model = null;
        this.view = null;
    }

}
